GO
/****** Object:  Table [dbo].[OrganisationOption]    Script Date: 11/29/2011 16:46:05 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[OrganisationOption](
	[OrgId] [int] NOT NULL,
	[TypeOfOptionId] [int] NOT NULL,
	[OptionId] [int] NOT NULL,
 CONSTRAINT [PK_OrganisationOption] PRIMARY KEY CLUSTERED 
(
	[OrgId] ASC,
	[TypeOfOptionId] ASC,
	[OptionId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO
/****** Object:  Table [dbo].[tblDepartment]    Script Date: 11/29/2011 16:46:22 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[Department](
	[DepartmentId] [int] NOT NULL,
	[DirectorateID] [int] NOT NULL,
	[ContactID] [int] NOT NULL,
	[DepartmentName] [varchar](50) NOT NULL,
	[DepartmentShortDesc] [varchar](50) NOT NULL,
	[DepartmentFullDesc] [varchar](50) NOT NULL,
	[AddressLine1] [varchar](50) NULL,
	[AddressLine2] [varchar](50) NULL,
	[AddressLine3] [varchar](50) NULL,
	[Phone] [varchar](50) NULL,
	[Fax] [varchar](50) NULL,
	[Email] [varchar](50) NULL,
	[Web] [varchar](50) NULL,
	[PostCode] [int] NULL,
	[City_Town] [varchar](50) NULL,
	[County] [varchar](50) NULL,
	[CountryId] [nchar](10) NULL,
 CONSTRAINT [PK_Department] PRIMARY KEY CLUSTERED 
(
	[DepartmentId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO
SET ANSI_PADDING OFF

GO
/****** Object:  Table [dbo].[tblDirectorate]    Script Date: 11/29/2011 16:45:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[Directorate](
	[DirectorateId] [int] NOT NULL,
	[OrgId] [int] NOT NULL,
	[ContactId] [int] NOT NULL,
	[Name] [varchar](50) NOT NULL,
	[DirectorateShortDesc] [varchar](50) NULL,
	[DirectorateFullDesc] [varchar](255) NULL,
	[AddressLine1] [varchar](50) NOT NULL,
	[AddressLine2] [varchar](50) NULL,
	[AddressLine3] [varchar](50) NULL,
	[Fax] [varchar](50) NULL,
	[Email] [varchar](50) NULL,
	[Web] [varchar](50) NULL,
	[PostCode] [int] NULL,
	[CharityNumber] [int] NULL,
	[CompanyNumber] [int] NULL,
	[City_Town] [varchar](50) NULL,
	[County] [varchar](50) NULL,
	[CountryId] [int] NULL,
 CONSTRAINT [PK_Directorate] PRIMARY KEY CLUSTERED 
(
	[DirectorateId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO
SET ANSI_PADDING OFF

GO
/****** Object:  Table [dbo].[tblFacility]    Script Date: 11/29/2011 16:46:31 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[Facility](
	[FacilityId] [int] NOT NULL,
	[ContactI] [int] NOT NULL,
	[PremiseId] [int] NOT NULL,
	[FacilityType] [varchar](50) NOT NULL,
	[FacilityDesc] [varchar](50) NOT NULL,
	[RoomHost] [varchar](50) NOT NULL,
	[RoomCapacity] [varchar](50) NOT NULL,
	[RoomSize] [int] NOT NULL,
	[EquipementAvaible] [bit] NOT NULL,
	[ConnectivityType] [varchar](50) NOT NULL,
	[WirelessAccessInfo] [varchar](50) NOT NULL,
	[RoomAndEquimentNote] [varchar](50) NOT NULL,
 CONSTRAINT [PK_tblFacility] PRIMARY KEY CLUSTERED 
(
	[FacilityId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO
SET ANSI_PADDING OFF

GO
/****** Object:  Table [dbo].[tblOrganisation]    Script Date: 11/29/2011 16:45:06 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[Organisation](
	[OrgId] [int] NOT NULL,
	[Status] [bit] NULL,
	[OrgName] [varchar](50) NOT NULL,
	[ContactID] [varchar](50) NULL,
	[OrgShortDesc] [varchar](50) NOT NULL,
	[OrgFullDesc] [varchar](50) NULL,
	[AddressLine1] [varchar](50) NOT NULL,
	[AddressLine2] [varchar](50) NULL,
	[AddressLine3] [varchar](50) NULL,
	[PostCode] [varchar](50) NOT NULL,
	[City_Town] [varchar](50) NULL,
	[County] [varchar](50) NULL,
	[CountryId] [int] NULL,
	[PreferredOrg] [bit] NULL,
	[ExpressionOfInterest] [bit] NULL,
	[Phone] [int] NOT NULL,
	[Fax] [int] NULL,
	[Email] [varchar](50) NULL,
	[Web] [varchar](50) NULL,
	[CharityNumber] [int] NULL,
	[CompanyNumber] [int] NULL,
	[TypeOfBussinessID] [int] NULL,
 CONSTRAINT [PK_tblOrganisation] PRIMARY KEY CLUSTERED 
(
	[OrgId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO
SET ANSI_PADDING OFF


GO
/****** Object:  Table [dbo].[tblSupportingMaterial]    Script Date: 11/29/2011 16:45:38 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[SupportingMaterial](
	[SupportingMaterialId] [int] NOT NULL,
	[OrgId] [int] NOT NULL,
	[UsertId] [int] NOT NULL,
	[Description] [varchar](50) NULL,
	[Type] [varchar](50) NULL,
	[AddedDate] [datetime] NOT NULL,
	[Status] [bit] NOT NULL,
	[url] [varchar](50) NOT NULL,
 CONSTRAINT [PK_tblSupportingMaterial] PRIMARY KEY CLUSTERED 
(
	[SupportingMaterialId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO
SET ANSI_PADDING OFF

GO
/****** Object:  Table [dbo].[tblTeam]    Script Date: 11/29/2011 16:46:13 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[Team](
	[TeamId] [int] NOT NULL,
	[DepartmentId] [int] NOT NULL,
	[TeamName] [varchar](50) NOT NULL,
	[TeamShortDesc] [varchar](50) NOT NULL,
	[TeamFullDesc] [varchar](50) NOT NULL,
	[PostCode] [int] NULL,
	[ContactId] [int] NULL,
	[AddressLine1] [varchar](50) NULL,
	[AddressLine2] [varchar](50) NULL,
	[AddressLine3] [varchar](50) NULL,
	[City_Town] [varchar](50) NULL,
	[County] [varchar](50) NULL,
	[CountryID] [int] NULL,
	[Web] [varchar](50) NULL,
	[Fax] [varchar](50) NULL,
	[Phone] [varchar](50) NULL,
	[Email] [varchar](50) NULL,
 CONSTRAINT [PK_tblTeam] PRIMARY KEY CLUSTERED 
(
	[TeamId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO
SET ANSI_PADDING OFF